<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title>员工培训记录</title>
    <script type="text/javascript" src="../../../js/boot.js"></script>

</head>
<body>
<div class="mini-fit">
    <div id="datagrid" class="mini-datagrid" style="width:100%;height:100%;" pageSize="20" idField="instID" allowResize="true"
         multiSelect="true">
        <div property="columns">
            <div type="indexcolumn" width="20"></div>
            <div field="userName" headerAlign="center" width="80">员工姓名</div>
            <div field="companyName" headerAlign="center" width="80">顾客名称</div>
            <div field="title" headerAlign="center" width="80">标题</div>
            <div field="batchNo" headerAlign="center" width="80">培训批次</div>
            <div field="trainTime" dateFormat="yyyy-MM-dd" headerAlign="center" width="120" allowSort="true">培训日期
            </div>
            <div field="description" headerAlign="center" width="80">说明</div>

        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    mini.parse();

    var userID;
    var url=window.location.search; //获取url中"?"符后的字串
    if(url.indexOf("?")!=-1){
        url = url.substr(url.indexOf("=")+1);
        if(url.indexOf("&")!=-1){
            url = url.split("&")[0];
        }
    }
    userID = url;

    var datagrid = mini.get("datagrid"); // 表定义列表
    datagrid.set({
        url: http.getUrl("/record/train/getTrainRecordList.do?userID="+userID)
    });
    datagrid.load();

    datagrid.on("drawcell",function(e) {
        var record = e.record, column = e.column, field = e.field, value = e.value;

    });


</script>